<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><s:property value="page.title" /></title>
    <meta name="heading" content="<s:property value="page.heading" />"/>
</head>

<s:form id="personForm" namespace="/person" action="save" method="post">
    <s:hidden name="person.id" value="%{person.id}"/>
    <s:textfield key="person.firstName" required="true" cssClass="text medium"/>
    <s:textfield key="person.lastName" required="true" cssClass="text medium"/>

    <li class="buttonBar bottom">
        <s:submit cssClass="button" action="save" key="button.save" theme="simple"/>
        <s:submit cssClass="button" action="list" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("personForm"));
</script>
